<template>
  <a-modal
    :width="400"
    :visible="esignVisible"
    title="选择盖章方式"
    centered
    @ok="submit"
    @cancel="onClose"
    :destroyOnClose="true"
  >
    <a-radio-group v-model:value="sign_type">
      <a-radio value="1">单页盖章</a-radio>
      <a-radio value="2">骑缝章</a-radio>
    </a-radio-group>
  </a-modal>
</template>

<script>
import { defineComponent, reactive, toRefs } from "vue";

import {} from "@ant-design/icons-vue";
export default defineComponent({
  name: "EsignStamp",
  components: {},
  props: {
    esignVisible: {
      type: Boolean,
      default: false,
    },
  },
  setup(props, { emit }) {
    const state = reactive({
      sign_type: "1",
    });

    const onClose = () => {
      emit("close");
    };

    const submit = () => {
      emit("success", state.sign_type);
    };

    return {
      ...toRefs(state),
      onClose,
      submit,
    };
  },
});
</script>

<style lang="less" scoped></style>
